<div ui-view>
	<div class="p-config-list">
	  <bread-crumb link-data="vm.breadCrumbArr"></bread-crumb>
	  <div class="pt-2">
		  <div class="toolbar">
		    <a class="btn btn-default-dark" ng-click="vm.create()">
		      <span class="fa fa-plus"></span>
		      <span>创建</span>
		    </a>
		    <input class="input pull-right" ng-model="vm.query" ng-change="vm.changePager()" placeholder="输入名称搜索">
		  </div>
		  <table class="pt-table">
		    <thead>
		      <tr>
		        <th>配置名称</th>
		        <th>状态</th>
		        <th style="width: 140px;">操作</th>
		      </tr>
		    </thead>
		    <tbody ng-if="vm.loading">
		      <tr>
		        <td class="text-center" colspan="3"><i class="fa fa-spinner fa-pulse"></i></td>
		      </tr>
		    </tbody>
		    <tbody ng-if="!vm.loading && vm.configData.length === 0">
		      <tr>
		        <td class="text-center" colspan="3">暂无数据</td>
		      </tr>
		    </tbody>
		    <tbody ng-if="!vm.loading &&vm.configData.length > 0">
		      <tr ng-repeat="config in vm.configData | filter: {config_name: vm.query} | orderBy:vm.sortKey:vm.reverse | page:vm.page:vm.pageSize">
		        <td>{{ config.config_name }}</td>
		        <td ng-if="config.status == '0'">
		        	未使用
		        </td>
		        <td ng-if="config.status == '1'">
		        	使用中
		        </td>
		        <td>
	        	  <!--<img width="16" height="16" src="./images/edit.png" ng-click="vm.edit(config.id)" alt="修改" title="修改" />-->
		          <img width="16" height="16" src="./images/delete.png" confirm data-msg="{{vm.msg}}" data-id="{{config.id}}" alt="删除"  title="删除" />
		        </td>
		      </tr>
		    </tbody>
		  </table>
		  <custom-pager page="vm.page" page-size="vm.pageSize" total-count="vm.totalCount"  item-length="vm.itemLength" ng-if="vm.totalCount"></custom-pager>
		</div>
	</div>
</div>
